import java.util.*;
public class C2 {
    public static void main(String[] args) {
        System.out.println("请输入,每输入一个信息用回车确认");
        System.out.println("最后输入一个“#”号结束输入操作");
        Scanner reader=new Scanner(System.in);
        while (!reader.hasNext("#")) {
            if(reader.hasNextInt()) {
                int xi=reader.nextInt();
                int yi=reader.nextInt();
                System.out.println(xi+yi);
            }
            else {
                if(reader.hasNextDouble()) {
                    double a=reader.nextDouble();
                    double b=reader.nextDouble();
                    System.out.println(a+b);
                }
                else {
                    if(reader.hasNext()) {
                        String c = reader.nextLine();
                        String d=reader.nextLine();
                        System.out.println(c+d);
                    }
                }
            }
        }
    }

}